package com.ktjy.springredis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @return 13141
 * 2025/7/21
 * 10:40
 */
@Data
@TableName("sys_role_right")
public class RoleRight {
    @TableId(value = "rf_id", type = IdType.AUTO)
    private Long rfId;
    @TableField("rf_role_id")
    private Long rfRoleId;
    @TableField("rf_right_code")
    private String rfRightCode;

    // 构造函数
    public RoleRight() {
    }

    public RoleRight(Long rfId, Long rfRoleId, String rfRightCode) {
        this.rfId = rfId;
        this.rfRoleId = rfRoleId;
        this.rfRightCode = rfRightCode;
    }

    // 属性封装
    public Long getRfId() {
        return rfId;
    }

    public void setRfId(Long rfId) {
        this.rfId = rfId;
    }

    public Long getRfRoleId() {
        return rfRoleId;
    }

    public void setRfRoleId(Long rfRoleId) {
        this.rfRoleId = rfRoleId;
    }

    public String getRfRightCode() {
        return rfRightCode;
    }

    public void setRfRightCode(String rfRightCode) {
        this.rfRightCode = rfRightCode;
    }
}
